package com.lark.web.domain;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import lombok.Data;
import com.lark.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lark.common.utils.log.annotation.FieldRemark;
import com.lark.common.utils.log.annotation.LogField;
import com.lark.common.annotation.Excel;

/**
 * 主机对象 host
 * @author fei
 * @email 952597665@qq.com
 * @date 2024-08-10
 */
@Data
public class Host extends BaseEntity<Host>
{
    private static final long serialVersionUID = 1L;

    /** 主机名 */
    @Excel(name = "主机名")
    @NotBlank(message = "主机名不允许为空")
    @LogField
    @FieldRemark(name = "主机名",field = "hostName")
    private String hostName;

    /** 主机IP */
    @Excel(name = "主机IP")
    @NotBlank(message = "主机IP不允许为空")
    @LogField
    @FieldRemark(name = "主机IP",field = "hostIp")
    private String hostIp;

    /** 主机端口 */
    @Excel(name = "主机端口")
    @NotBlank(message = "主机端口不允许为空")
    @LogField
    @FieldRemark(name = "主机端口",field = "hostPort")
    private String hostPort;

    /** 主机账号 */
    @LogField
    @FieldRemark(name = "主机账号",field = "account")
    private String account;

    /** 主机密码 */
    @LogField
    @FieldRemark(name = "主机密码",field = "password")
    private String password;

    /** 类型 */
    @Excel(name = "类型", dictType = "host_type")
    @NotBlank(message = "类型不允许为空")
    @LogField
    @FieldRemark(name = "类型",field = "type")
    private String type;

    /** 状态 */
    @Excel(name = "状态", dictType = "host_status")
    @LogField
    @FieldRemark(name = "状态",field = "status")
    private String status;

    public void setHostName(String hostName) 
    {
        this.hostName = hostName;
    }

    public String getHostName() 
    {
        return hostName;
    }

    public void setHostIp(String hostIp) 
    {
        this.hostIp = hostIp;
    }

    public String getHostIp() 
    {
        return hostIp;
    }

    public void setHostPort(String hostPort) 
    {
        this.hostPort = hostPort;
    }

    public String getHostPort() 
    {
        return hostPort;
    }

    public void setAccount(String account) 
    {
        this.account = account;
    }

    public String getAccount() 
    {
        return account;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("hostName", getHostName())
            .append("hostIp", getHostIp())
            .append("hostPort", getHostPort())
            .append("account", getAccount())
            .append("password", getPassword())
            .append("type", getType())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
